package com.plian.system.entity.pf;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: TODO
 * @Author: Take-off
 * @Date: 2023/3/10 2:56 PM
 * @Param
 * @return
 * @Version: 1.0
 **/
@Data
@TableName("pf_base_deputy_different")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BaseDeputyDifferent 对象", description = "企业副职差异化考核得分及分配系数 主表")
public class BaseDeputyDifferent extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "单据编码")
    private String code;

    @ApiModelProperty(value = "上报单位")
    private String fillingUnitId;

    @ApiModelProperty(value = "上报日期")
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE)
    private Date fillingDate;

    @ApiModelProperty(value = "任期激励年度 - 开始")
    private String officeYearStart;

    @ApiModelProperty(value = "任期激励年度 - 结束")
    private String officeYearEnd;

    @ApiModelProperty(value = "申报薪酬年度")
    private String declareYear;

    @TableField(exist = false)
    @ApiModelProperty(value = "详情列表")
    private List<DeputyDifferentDetail> deputyDifferentDetails;


    @ApiModelProperty(value = "审批人")
    private String approvedUser;

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(value = "审批时间")
    private Date approvedTime;

    @ApiModelProperty(value = "审批意见")
    private String approvedOpinion;

    @ApiModelProperty(value = "单据类型")
    private String formType;

    @ApiModelProperty(value = "数据来源 null为系统填报 对应用户id")
    private String dataSource;

    @ApiModelProperty(value = "数据来源id", required = true)
    private String dataSourceId;
}
